<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head>
    <th:block th:include="include :: header('修改入库单')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-stockinDetail-edit" th:object="${stockinDetail}">
        <input id="stockinDetailId" name="stockinDetailId" th:field="*{stockinDetailId}"  type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">入库单主表guid：</label>
            <div class="col-sm-8">
                <input id="stockinGuid" name="stockinGuid" th:field="*{stockinGuid}" class="form-control" type="text" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">入库单主表id：</label>
            <div class="col-sm-8">
                <input id="stockinId" name="stockinId" th:field="*{stockinId}" class="form-control" type="text" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">批号：</label>
            <div class="col-sm-8">
                <input id="lotNo" name="lotNo" th:field="*{lotNo}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group" hidden="hidden">
            <label class="col-sm-3 control-label">物品guid：</label>
            <div class="col-sm-8">
                <input id="productGuid" name="productGuid" th:field="*{productGuid}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">物资id：</label>
            <div class="col-sm-8">
                <input id="productId" name="productId" th:field="*{productId}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">计划数量：</label>
            <div class="col-sm-8">
                <input id="quantity" name="quantity" th:field="*{quantity}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">单价：</label>
            <div class="col-sm-8">
                <input id="price" name="price" th:field="*{price}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">实际数量：</label>
            <div class="col-sm-8">
                <input id="assignNum" name="assignNum" th:field="*{assignNum}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "mydo/stockindetail"

    function submitHandler() {
        var data = $("#form-stockinDetail-edit").serializeArray();
        console.log(data)
        //TODO 如果沒有选择项目组（项目组为空 不允许提交）
        $.operate.save(prefix + "/edit", data);
    }
</script>
</body>
</html>
